<template>
  <div class="bg-plus">
    <div class="grid-content bg-purple ">
      <span class="hearder">快捷入口</span>
    </div>
    <div class="four-flex-right">
      <div v-for="(fit, index) in miniTitel" :key="fit" class="block" @click="routeHerf(index)">
        <el-image
          :key="index"
          style="width: 44px; height: 44px;margin-top:20px"
          :src="imgFild[index]"
          fit="fit"
        />
        <br>
        <span class="demonstration">{{ miniTitel[index] }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      miniTitel: ['企业管理', '收费管理', '收费记录', '收费统计'],
      imgFild: [
        require('@/icons/workbench/addEnterprise.png'),
        require('@/icons/workbench/addPayment.png'),
        require('@/icons/workbench/dataBigScream.png'),
        require('@/icons/workbench/yuangong.png')
      ]
    }
  },
  methods: {
    routeHerf(index) {
      if (index === 0) {
        this.$router.push('/add-ep')
      } else if (index === 1) {
        this.$router.push('/sys/user')
      } else if (index === 2) {
        this.$router.push('/propety')
      }
    }
  }
}
</script>

<style scoped lang="scss">
.four-flex-right{
  display: flex;
  justify-content: space-between;
  justify-items: center;
  text-align: center;
  font-size: 14px;
}
.block:hover{
  cursor: pointer;
}
</style>
